<div class="space"></div>

<div class="box">
	<div class="box-header">Bảng Dữ Liệu Sinh Viên</div>
	<div class="box-content">
	<table class="tabular-data image">
		<thead>
			<tr>
				<th scope="col" id="code">Mã Số<br  />Sinh Viên</th>
				<th scope="col" id="name">Họ Tên</th>
				<th scope="col" id="birthday">Ngày Sinh</th>
				<th scope="col" id="edu-sys">Hệ Đào Tạo</th>
				<th scope="col" id="branch">Ngành Học</th>
				<th scope="col" id="course">Khóa Học</th>
				<th scope="col" id="task">Thao Tác</th>
			</tr>
		</thead>
		
		<tfoot>
			<tr>
				<td colspan="7">
					<div id="navlist" >
						<ul>
							<?php for($i = 0; $i < $pages; ++$i) { ?>
							<li><a onclick="switchPage( this, 'add_student', <?php echo $i + 1; ?> )" href="#"><?php echo $i + 1; ?></a></li>
							<?php }?>
						</ul>			
					</div>
				</td>
			</tr>
		</tfoot>
		
		<tbody>
			<?php foreach($students as $student): ?>
			<tr>		
				<td><?php echo $student['student_id']?>	</td>
				<td><?php echo $student['name']?></td>
				<td><?php echo $student['birthday']?></td>
				<td><?php echo $student['edu_system']?></td>	
				<td><?php echo $student['branch']?></td>
				<td><?php echo $student['course']?></td>
				<td>
					<form method="post" action="">
						<input type="hidden" name="student_id" value="<?php echo $student['student_id']; ?>" />
						<input class="button edit" type="submit" onclick="savPos( this.form );" name="action" value="Sửa SV" />
						<input class="button delete" type="submit" onclick="savPos( this.form ); return confirm('Are you sure?');" name="action" value="Xóa SV" />
					</form>
				</td>	
			</tr>
			<?php endforeach; ?>	
		</tbody>
	</table>
	</div><!-- close box content -->
</div><!-- close box -->

<div class="space"></div>

